import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import Home from './Home';
import { updateMoudelInfoActiveName } from '../nav/Redux';


const mapStateToProps = ( state ) => ({
    activeName: state.moudelInfo.activeName,
})
const mapDispatchToProps = {
    updateMoudelInfoActiveName
}

const HomeContainer = connect(
    mapStateToProps,
    mapDispatchToProps
)(Home);

export default withRouter( HomeContainer );